public connectdb{
	$servername="127.0.0.0:3306";
	$username="root";
	$password="asdf";
	connectMysql($servername,$username,$password){
		$con=mysql_connect($servername,$username,$password);
		if(!$con){
			die('无法连接:'.mysql_error());
		}else{	
		echo 'connect succeed!';}
	}

}